import request from '@/utils/request'

// 查询物料大类列表
export function listIteminfoClassBig(query) {
  return request({
    url: '/base/iteminfoClassBig/list',
    method: 'get',
    params: query
  })
}
export function getListBigClass(query) {
  return request({
    url: '/base/iteminfoClassBig/getListBigClass',
    method: 'get',
  })
}

// 查询物料大类详细
export function getIteminfoClassBig(id) {
  return request({
    url: '/base/iteminfoClassBig/' + id,
    method: 'get'
  })
}

// 新增物料大类
export function addIteminfoClassBig(data) {
  return request({
    url: '/base/iteminfoClassBig',
    method: 'post',
    data: data
  })
}

// 修改物料大类
export function updateIteminfoClassBig(data) {
  return request({
    url: '/base/iteminfoClassBig',
    method: 'put',
    data: data
  })
}

// 删除物料大类
export function delIteminfoClassBig(id) {
  return request({
    url: '/base/iteminfoClassBig/' + id,
    method: 'delete'
  })
}
